#ifndef __S_NOR_FLASH_USER__
#define __S_NOR_FLASH_USER__

extern signed char s_nor_flash_user_init(void);
extern signed char s_nor_flash_user_open(void);
extern signed char s_nor_flash_user_close(void);
extern signed char s_nor_flash_user_erase_chip(void);
extern signed char s_nor_flash_user_erase(unsigned int offset, unsigned short len);
extern signed char s_nor_flash_user_erase_page(unsigned short page);
extern signed char s_nor_flash_user_read(unsigned int offset, unsigned char *data, unsigned short len);
extern signed char s_nor_flash_user_write(unsigned int offset, const unsigned char *data, unsigned short len);
extern signed char s_nor_flash_user_read_sectors(unsigned int sector_num, unsigned short sector_count, unsigned char *buf);
extern signed char s_nor_flash_user_write_sectors(unsigned int sector_num, unsigned short sector_count, unsigned char *buf);

#endif

